<!DOCTYPE html>
<html>
<head>
    <title>商品对应规格表值表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                <i-button type="info" @click="importAgentGoods"><i class="fa fa-pencil-square-o"></i>&nbsp;导入供应商商品到我的店铺</i-button>
                <!--<i-button type="error" @click=""><i class="fa fa-pencil-square-o"></i>&nbsp;否决</i-button>-->
                <!--
                #if($shiro.hasPermission("agent:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("agent:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("agent:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
                -->
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}} — <font color="red">当前供应商：{{agent.vendorRootDeptName}}</font></p>
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="goodsKeyword.name" @on-enter="queryByGoodsKeyword" placeholder="商品名称或编码"/>
                </i-col>
                <i-button @click="queryByGoodsKeyword">查询</i-button>
            </div>
            <div class="buttons-group">
                <i-button type="primary" @click="addGoodsToMyShop"><i class="fa fa-hand-o-up"></i>&nbsp;导入到我的店铺</i-button>
                <!--
                <i-button type="warning" @click="openPro"><i class="fa fa-pencil-square-o"></i>&nbsp;产品</i-button>
                <i-button type="warning" @click="openSpe"><i class="fa fa-pencil-square-o"></i>&nbsp;规格</i-button>
                -->
            </div>
        </Row>
        <div style="width: 100%; height: 100%">
            <table id="goodsJqGrid"></table>
            <div id="goodsJqGridPager"></div>
        </div>

	</Card>
</div>

<script src="${rc.contextPath}/js/shop/vendor.js?_${date.systemTime}"></script>
</body>
</html>